package com.wp.www.service;

import com.wp.www.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

@FeignClient(value = "cloudalibaba-seata-accout")
public interface AccountService {
    @GetMapping("/account/{userId}/{money}")
    public CommonResult deductAccount(@PathVariable("userId") String userId, @PathVariable("money") BigDecimal money);
}
